package vip.meeet.base;


/**
 * 局部变量表与操作数栈
 * https://blog.csdn.net/happy_bigqiang/article/details/90414541
 * https://mp.weixin.qq.com/s?__biz=MzIyNDU2ODA4OQ==&mid=2247484766&idx=1&sn=d3264d2995996679e7afff13a44076aa&chksm=e80db328df7a3a3ea9376beac3bee3b46c2b8ca61978ef85db3c216ba26eda487e68928f4e8e&scene=21#wechat_redirect
 */
public class IppI {

    public static void main(String[] args) {
        int i = 1;
        i = i++;//i=1,++操作直接修改的是局部变量表，没有修改操作数栈的值，所以最后赋值操作之后被覆盖
        int j = i++;//j=1,i=2
        int k = i + ++i * i++;//k=3*3 + 2 = 11 i=4
        System.out.println("i="+i);
        System.out.println("j="+j);
        System.out.println("k="+k);
    }
}
